package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
public class Notice {
    private Long id;

    private Employee issuer;

    private Date pubdate;

    private String title;

    private String content;

    private boolean read = false;

    public String getJson(){
        HashMap map = new HashMap();
        map.put("id", id);
        map.put("title", title);
        map.put("content", content);
        return JSON.toJSONString(map);
    }
}